//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "editor\fn_stuckUnit.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TMFPROFILERSTART;

private ["_obj"];
DEFAULT_PARAM(_obj,0,objNull);

if (IS_OBJECT(_obj) && {!(isNull _obj)} && {_obj isKindOf "Man"}) then {
	_obj spawn {
		_this forceSpeed 0;
		WAITINIT(fn_stuckUnit);
		_this call FFUNC(stuckUnit2);
	};
} else {
	ERROR_1("Invalid Input",_this);
};

TMFPROFILERSTOP;